package com.cyy.cn.mq;

import org.springframework.amqp.rabbit.annotation.RabbitHandler;
import org.springframework.amqp.rabbit.annotation.RabbitListener;
import org.springframework.stereotype.Component;

@Component
@RabbitListener(queues = "chenyuyi")
public class Customer1 {

    @RabbitHandler
    public void showMessegd(String message){
        System.out.println("chenyuyi接受的消息是：" + message);
    }
}
